package com.microservice.api.wechat.dto;

import java.io.Serializable;

/**
 * Token状态响应DTO
 * 
 * @author common-api
 */
public class TokenStatusResponse implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 账号名称
     */
    private String accountName;
    
    /**
     * 配置类型
     */
    private String configType;
    
    /**
     * 是否有Token
     */
    private Boolean hasToken;
    
    /**
     * Token剩余有效期（秒）
     */
    private Long ttl;
    
    /**
     * Token剩余有效期（分钟）
     */
    private Long ttlMinutes;
    
    public TokenStatusResponse() {
    }
    
    public String getAccountName() {
        return accountName;
    }
    
    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }
    
    public String getConfigType() {
        return configType;
    }
    
    public void setConfigType(String configType) {
        this.configType = configType;
    }
    
    public Boolean getHasToken() {
        return hasToken;
    }
    
    public void setHasToken(Boolean hasToken) {
        this.hasToken = hasToken;
    }
    
    public Long getTtl() {
        return ttl;
    }
    
    public void setTtl(Long ttl) {
        this.ttl = ttl;
    }
    
    public Long getTtlMinutes() {
        return ttlMinutes;
    }
    
    public void setTtlMinutes(Long ttlMinutes) {
        this.ttlMinutes = ttlMinutes;
    }
    
    @Override
    public String toString() {
        return "TokenStatusResponse{" +
                "accountName='" + accountName + '\'' +
                ", configType='" + configType + '\'' +
                ", hasToken=" + hasToken +
                ", ttl=" + ttl +
                ", ttlMinutes=" + ttlMinutes +
                '}';
    }
}
